<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">

    <div class="form-group">
        <label for="c-agent" class="control-label col-xs-12 col-sm-2">代理等级</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-agent" data-rule="required" class="form-control selectpicker" name="row[agent]">
                <option value="0" {if condition="$row.agent == 0"}selected{/if}>普通用户</option>
                {foreach name="grade" id="vo"}
                <option value="{$vo.id}" {if condition="$row.agent == $vo.id"}selected{/if}>{$vo.name}</option>
                {/foreach}
            </select>

        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label for="c-email" class="control-label col-xs-12 col-sm-2">登录邮箱</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-email" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-password" class="control-label col-xs-12 col-sm-2">{:__('Password')}</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-password" data-rule="password" class="form-control" name="row[password]" type="text" value="" placeholder="{:__('Leave password blank if dont want to change')}" autocomplete="new-password" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>





    <!--<div class="form-group">
        <label for="c-money" class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-6">
            <input id="c-money" class="form-control" name="row[money]" type="number" value="" placeholder="如增加10余额填入10，减去10余额填入-10">
        </div>
    </div>
    <div class="form-group">
        <label for="c-score" class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
        <div class="col-xs-12 col-sm-6">
            <input id="c-score" class="form-control" name="row[score]" type="number" value="" placeholder="如增加10积分填入10，减去10积分填入-10">
        </div>
    </div>-->

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
